<?php
declare (strict_types = 1);

namespace app\common\customer\model;

use app\common\config\logic\DictionaryLogic;
use app\common\config\model\ConfigStatus;
use app\common\product\logic\StoreCategoryLogic;
use app\common\system\logic\UserLogic;
use think\Model;
use think\model\concern\SoftDelete;

class CustomerSign extends Model
{
    protected $table = "tk_member_sign";

    use SoftDelete;
    protected $defaultSoftDelete = 0;

    protected $type = [
    ];

    public function getUserAttr($value, $data) {
        $userId = $data['user_id'];
        $logic = new UserLogic();

        return $logic->getUser($userId, ['id', 'realname']);
    }
}
